{
  "resourceType": "Bundle",
  "id": "BundlePhysioProcedureTest",
  "meta": {
    "profile": [
      "https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument"
    ]
  },
  "identifier": {
    "system": "https://fhir.by/ValueSet/urn:ietf:rfc:3086",
    "value": "{{$guid}}"
  },
  "type": "document",
  "timestamp": "2025-11-15T16:00:00Z",
  "entry": [
    {
      "fullUrl": "Composition/CompositionPhysioProcedureTest",
      "resource": {
        "resourceType": "Composition",
        "id": "CompositionPhysioProcedureTest",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/CompDocument"
          ]
        },
        "status": "final",
        "type": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/CompositionType",
              "code": "general",
              "display": "Общая медицинская информация"
            }
          ]
        },
        "subject": [
          {
            "reference": "Patient/PatientTest"
          }
        ],
        "date": "2025-11-15T16:00:00Z",
        "author": [
          {
            "reference": "Practitioner/{{PractitionerId}}"
          }
        ],
        "title": "CompDocument для наполненного Bundle по оперативному вмешательству",
        "custodian": {
          "reference": "Organization/{{OrganizationId}}"
        },
        "event": [
          {
            "detail": [
              {
                "reference": {
                  "reference": "Procedure/ExamplePhysiotherapyProcedureMagnitTest"
                }
              }
            ]
          },
          {
            "detail": [
              {
                "reference": {
                  "reference": "Procedure/ExamplePhysiotherapyProcedureMassageTest"
                }
              }
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "Patient/PatientTest",
      "resource": {
                "resourceType": "Patient",
                "id": "PatientTest",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/PatientWithIdentificationNumber"
                    ]
                },
                "extension": [
                    {
                        "extension": [
                            {
                                "url": "https://fhir.by/StructureDefinition/ConsentPersonalDataBoolean",
                                "valueBoolean": true
                            },
                            {
                                "url": "https://fhir.by/StructureDefinition/ConsentPersonalDataPeriod",
                                "valuePeriod": {
                                    "start": "2025-01-01"
                                }
                            }
                        ],
                        "url": "https://fhir.by/StructureDefinition/ConsentPersonalData"
                    }
                ],
                "identifier": [
                    {
                        "use": "usual",
                        "type": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                                    "code": "INP",
                                    "display": "Уникальный идентификационный номер"
                                }
                            ]
                        },
                        "value": "7551374A009PB9"
                    },
                    {
                        "extension": [
                            {
                                "extension": [
                                    {
                                        "url": "https://fhir.by/StructureDefinition/PassportIssuedString",
                                        "valueString": "Центральным РУВД г Минска, 21.08.2021"
                                    },
                                    {
                                        "url": "https://fhir.by/StructureDefinition/PassportIssuedDate",
                                        "valueDate": "2021-08-21"
                                    },
                                    {
                                        "url": "https://fhir.by/StructureDefinition/PassportIssuedCode",
                                        "valueCodeableConcept": {
                                            "coding": [
                                                {
                                                    "system": "https://fhir.by/ValueSet/OCAM",
                                                    "code": "710"
                                                }
                                            ]
                                        }
                                    }
                                ],
                                "url": "https://fhir.by/StructureDefinition/PassportIssued"
                            }
                        ],
                        "use": "usual",
                        "type": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                                    "code": "Passport-RB",
                                    "display": "Паспорт гражданина Республики Беларусь"
                                }
                            ]
                        },
                        "value": "MP2334555"
                    }
                ],
                "active": true,
                "name": [
                    {
                        "family": "Иванов",
                        "given": [
                            "Петр",
                            "Сидорович"
                        ]
                    }
                ],
                "telecom": [
                    {
                        "system": "phone",
                        "value": "375295748410"
                    },
                    {
                        "system": "email",
                        "value": "test_mail@gmail.by"
                    }
                ],
                "gender": "male",
                "birthDate": "1990-12-31",
                "deceasedBoolean": false,
                "address": [
                    {
                        "extension": [
                            {
                                "url": "https://fhir.by/StructureDefinition/CoutryForAddresses",
                                "valueCodeableConcept": {
                                    "coding": [
                                        {
                                            "system": "https://fhir.by/ValueSet/CitizenshipCode",
                                            "code": "BY",
                                            "display": "Беларусь"
                                        }
                                    ]
                                }
                            },
                            {
                                "url": "https://fhir.by/StructureDefinition/StreetGeoRegistry",
                                "valueCodeableConcept": {
                                    "coding": [
                                        {
                                            "system": "https://fhir.by/ValueSet/StreetGeoRegistry",
                                            "code": "5170309411",
                                            "display": "Улица Золотая Горка"
                                        }
                                    ]
                                }
                            },
                            {
                                "url": "https://fhir.by/StructureDefinition/ApartmentRoom",
                                "valueString": "кв. 29"
                            }
                        ],
                        "use": "home",
                        "text": "г.Минск, Улица Золотая Горка, д.5, кв.29",
                        "postalCode": "220022"
                    },
                    {
                        "extension": [
                            {
                                "url": "https://fhir.by/StructureDefinition/CoutryForAddresses",
                                "valueCodeableConcept": {
                                    "coding": [
                                        {
                                            "system": "https://fhir.by/ValueSet/CitizenshipCode",
                                            "code": "BY",
                                            "display": "Беларусь"
                                        }
                                    ]
                                }
                            },
                            {
                                "url": "https://fhir.by/StructureDefinition/StreetGeoRegistry",
                                "valueCodeableConcept": {
                                    "coding": [
                                        {
                                            "system": "https://fhir.by/ValueSet/StreetGeoRegistry",
                                            "code": "51703019678",
                                            "display": "Проспект Рокоссовского"
                                        }
                                    ]
                                }
                            },
                            {
                                "url": "https://fhir.by/StructureDefinition/ApartmentRoom",
                                "valueString": "кв. 2"
                            }
                        ],
                        "use": "temp",
                        "text": "г.Минск, Проспект Рокоссовского, д.20, кв.2",
                        "postalCode": "220011"
                    }
                ],
                "maritalStatus": {
                    "coding": [
                        {
                            "system": "https://fhir.by/ValueSet/MaritalStatus",
                            "code": "married"
                        }
                    ]
                },
                "contact": [
                    {
                        "relationship": [
                            {
                                "coding": [
                                    {
                                        "system": "https://fhir.by/ValueSet/RelatedPersonType",
                                        "code": "wife"
                                    }
                                ]
                            }
                        ],
                        "name": {
                            "family": "Иванова",
                            "given": [
                                "Лариса",
                                "Ивановна"
                            ]
                        },
                        "telecom": [
                            {
                                "system": "phone",
                                "value": "802990990908"
                            }
                        ]
                    }
                ],
                "generalPractitioner": [
                    {
                        "reference": "Organization/{{OrganizationId}}",
                        "identifier": {
                            "value": "5526",
                            "period": {
                                "start": "2008-12-11"
                            }
                        }
                    }
                ]
      }
    },
    {
      "fullUrl": "Procedure/ExamplePhysiotherapyProcedureMagnitTest",
      "resource": {
        "resourceType": "Procedure",
        "id": "ExamplePhysiotherapyProcedureMagnitTest",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/PhysiotherapyProcedure"
          ]
        },
        "extension": [
          {
            "url": "https://fhir.by/StructureDefinition/ProcedureNumber",
            "valueUnsignedInt": 5
          }
        ],
        "basedOn": [
          {
            "reference": "ServiceRequest/{{SR1}}"
          }
        ],
        "status": "completed",
        "category": [
          {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/HealthcareServiceCategory",
                "code": "02/1",
                "display": "Амбулаторно-поликлиническая помощь взрослому населению"
              }
            ]
          }
        ],
        "code": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/VSPhysioHealthcareService",
              "code": "A17-30-025",
              "display": "Общая магнитотерапия"
            }
          ]
        },
        "subject": {
          "reference": "Patient/PatientTest"
        },
        "occurrencePeriod": {
          "start": "2025-12-12T12:20:00Z",
          "end": "2025-12-25T12:20:00Z"
        },
        "recorded": "2025-12-25T12:20:00Z",
        "recorder": {
          "reference": "PractitionerRole/{{PractitionerRoleId}}"
        },
        "performer": [
          {
            "actor": {
              "reference": "Organization/{{OrganizationId}}"
            }
          }
        ],
        "location": {
          "reference": "Location/{{LocationId}}"
        },
        "reason": [
          {
            "reference": {
              "reference": "Condition/{{Diagnosis}}"
            }
          }
        ],
        "bodySite": [
          {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/AnatomicalTerminology",
                "code": "Forearm-L",
                "display": "Предплечье (лев.)"
              }
            ]
          }
        ],
        "outcome": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/ProcedureResult",
              "code": "successful",
              "display": "Успешно"
            }
          ]
        },
        "followUp": [
          {
            "text": "Рекомендуется 20 минут после процедуры не выходить на холод."
          }
        ]
      }
    },
    {
      "fullUrl": "Procedure/ExamplePhysiotherapyProcedureMassageTest",
      "resource": {
        "resourceType": "Procedure",
        "id": "ExamplePhysiotherapyProcedureMassageTest",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/PhysiotherapyProcedure"
          ]
        },
        "extension": [
          {
            "url": "https://fhir.by/StructureDefinition/ProcedureNumber",
            "valueUnsignedInt": 2
          }
        ],
        "basedOn": [
          {
            "reference": "ServiceRequest/{{SR2}}"
          }
        ],
        "status": "stopped",
        "category": [
          {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/HealthcareServiceCategory",
                "code": "02/1",
                "display": "Амбулаторно-поликлиническая помощь взрослому населению"
              }
            ]
          }
        ],
        "code": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/VSPhysioHealthcareService",
              "code": "A21-01-004",
              "display": "Массаж верхней конечности медицинский"
            }
          ]
        },
        "subject": {
          "reference": "Patient/PatientTest"
        },
        "occurrencePeriod": {
          "start": "2025-12-12T12:20:00Z",
          "end": "2025-12-15T12:20:00Z"
        },
        "recorded": "2025-12-15T12:20:00Z",
        "recorder": {
          "reference": "PractitionerRole/{{PractitionerRoleId}}"
        },
        "performer": [
          {
            "actor": {
              "reference": "Organization/{{OrganizationId}}"
            }
          }
        ],
        "location": {
          "reference": "Location/{{LocationId}}"
        },
        "reason": [
          {
            "reference": {
              "reference": "Condition/{{Diagnosis}}"
            }
          }
        ],
        "bodySite": [
          {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/AnatomicalTerminology",
                "code": "Upper-limb-L",
                "display": "Верхняя конечность (лев.)"
              }
            ]
          }
        ],
        "outcome": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/ProcedureResult",
              "code": "partially-successful",
              "display": "Частично успешно"
            }
          ]
        },
        "note": [
          {
            "text": "Процедура остановлена по желанию пациента"
          }
        ]
      }
    }
  ]
}